how to check if postgres is running ubuntu